﻿using System;
using Autodesk.Revit.DB;

namespace YJKRGeometry.CalculationAnalysis
{
	public class CurvesCalculator
	{
		public static XYZ GetPointOnSegment(Curve curve, XYZ pt1, XYZ pt2, double value)
		{
			IntersectionResult intersectionResult = curve.Project(pt1);
			IntersectionResult intersectionResult2 = curve.Project(pt2);
			double num = (intersectionResult.Parameter + intersectionResult2.Parameter) * value;
			return curve.Evaluate(num, false);
		}
	}
}
